package pinyinJava.bean;

public class DBean {
    private String code;
    private String word;
    private long frequency;
    private long use;
    private String zyCode;
    private String pyCode;

    public DBean(String code, String word) {
        super();
        this.code = code;
        this.word = word;
        this.frequency = 1;
        this.use = 0;
    }

    public DBean(String code, String word, long frequency, long use) {
        this.code = code;
        this.word = word;
        this.frequency = frequency;
        this.use = use;
    }

    @Override
    public String toString() {
        return "DBean{" +
                "code='" + code + '\'' +
                ", word='" + word + '\'' +
                ", frequency=" + frequency +
                ", use=" + use +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public long getFrequency() {
        return frequency;
    }

    public void setFrequency(long frequency) {
        this.frequency = frequency;
    }

    public long getUse() {
        return use;
    }

    public void setUse(long use) {
        this.use = use;
    }

    public String getZyCode() {
        return zyCode;
    }

    public void setZyCode(String zyCode) {
        this.zyCode = zyCode;
    }

    public String getPyCode() {
        return pyCode;
    }

    public void setPyCode(String pyCode) {
        this.pyCode = pyCode;
    }
}
